package com.bidevalution.business.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 表决状态
 */
public enum VoteStatusEnum {

    Start(10,"表决中"),
    VoteEnd(11, "投标结束"),
    End(20,"表决结束"),
    Termination(30,"终止");
    public int code;
    public String name;

    VoteStatusEnum(int code, String name){
        this.code = code;
        this.name = name;
    }

    public static List<String> getNames() {
        List<String> ls = new ArrayList<>();
        VoteStatusEnum[] areas = VoteStatusEnum.values();
        for(VoteStatusEnum item : areas) {
            ls.add(item.getName());
        }
        return ls;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
